package com.ssm.basis.service.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.springframework.http.HttpStatus;

/**
 * @see HttpStatus
 */
@Getter
@AllArgsConstructor
public enum CustomExceptionEnum implements ExceptionEnum {
    UNKNOWN_EXCEPTION("500", "未知异常"),
    LOGIN_EXCEPTION("403", "登录异常"),
    NO_ACCESS("99990001", "无访问权限"),
    PARAM_EXCEPTION("99990000", "参数异常"),
    JWT_EXPIRED_EXCEPTION("99990003", "token 已过期！"),
    JWT_INVALID_EXCEPTION("99990002", "token 签名不合法！"),
    PASSWORD_EMPTY_EXCEPTION("10010", "密码不能为空"),
    PASSWORD_FORMAT_EXCEPTION("10020", "密码格式校验失败");

    String code;
    String message;
}
